<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        let i = prompt(`请输入类型<br>1,普通<br>2,会员`)
        let rmb
        let l
        switch (i) {
            default:
                alert("输入错误")
                break;
            case "2":
                rmb = prompt("多少钱")
                if (rmb >= 200) {
                    l = 0.75
                } else {
                    l = 0.8
                }
                alert(rmb * l)
                break;
            case "1":
                rmb = prompt("多少钱")
                if (rmb >= 100) {
                    l = 0.9
                } else {
                    l = 1
                }
                alert(rmb * l)
                break;

        }


    </script>
</body>

</html>